package test01;
class Person {
    public static String name = "mike";
    public int age;
    public Person(int age) {
        this.age = age;
        System.out.println("Person：构造方法执行");
    }
    {
        System.out.println("Person：实例代码块执行");
    }
    static {
        System.out.println("name = " + name);
        System.out.println("Person：静态代码块执行");
    }
}
class Student extends Person{
    public static String name = "jack";
    public Student(int age) {
        super(age);
        System.out.println("Student：构造方法执行");
    }
    {
        System.out.println("Student：实例代码块执行");
    }
    static {
        System.out.println("name = " + name);
        System.out.println("Student：静态代码块执行");
    }
}
public class Test {
    public static void main(String[] args) {
        Student student1 = new Student(19);
        System.out.println("==============================");
        Student student2 = new Student(20);

    }
}